import type { MenuVO } from "../menu/types.ts"
import type { PageVO } from "../page-type.ts"

/**
 * 用户登录
 */
export type UserLoginVO = {
    userName: string,
    password: string
}
/**
 * 登录成功结果
 */
export type UserLoginResultVO = {
    jwt: string,
    user: UserVO,
    menuAuth: MenuVO[]
}

/**
 * 用户
 */
export type UserVO = {
    guid: string,
    realName: string,
    userName: string,
    password: string,
    role: string,
    roleName: string
}
/**
 * 用户检索
 */
export type QueryUserVO = {
    userName: string,
    realName: string,
    role: string
} & PageVO